package com.qipa.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.qipa.entity.ChatOp;
import com.qipa.mapper.ChatOpMapper;
import com.qipa.model.ChatOpModel;
import com.qipa.service.IChatOpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * ChatOp 表数据服务层接口实现类
 *
 */
@Service
public class ChatOpServiceImpl extends BaseServiceImpl<ChatOpMapper, ChatOp> implements IChatOpService {

	@Autowired
    private ChatOpMapper chatOpMapper;


    @Override
    public Page<ChatOpModel> getPage(Page<ChatOpModel> page, ChatOpModel params) {
        page.setRecords(chatOpMapper.getPage(page,params));
        return page;
    }


    @Override
    public List<ChatOpModel> getJoinList(ChatOpModel params) {
        return chatOpMapper.getJoinList(params);
    }


    @Override
    public List<ChatOpModel> getSimpleList(ChatOpModel params) {
        return chatOpMapper.getSimpleList(params);
    }

}